#!/bin/bash 
set -x  
 
exec &> /server/log/gitpull_result.log
 
##更新项目代码## 
NEW_git(){ 
cd /www/first/webmanlds
git reset --hard 
git pull origin master
chmod 777 /www/first/webmanlds/ -R

} 
 
 
 
main(){ 
    NEW_git 
 
} 
main 
